<?
require( "Application.php");
$appManager = new AppManager();
$expectedKey = $appManager->getKey();
if($expectedKey != $_POST["keyfield"])
  echo "Key is not correct";
else {
	$storeManager = new StoreManager();
echo $storeManager->saveArticle(
	$_POST["store"], 
	$_POST["articleURL"], 
	$_POST["articleTitle"], 
	$_POST["icon"], 
	$_POST["image"], 
	$_POST["domain"]);	
	
}
require( "OnRequestEnd.php"); 
?>